﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChiTietSach.ascx.cs" Inherits="ChiTietSach" %>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetOneSach" TypeName="BussinessObject.SachController">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="-1" Name="MaSach" 
            QueryStringField="MaSach" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" 
    Width="100%">
    <ItemTemplate>
        <table width="500px">
            <tr>
                <td align="center" valign="top">
                    <asp:Image ID="Image1" runat="server" Height="400px" 
                ImageUrl='<%# Eval("Hinh", "{0}") %>' Width="350px" />
                </td>
            </tr>
            <tr align="center">
                <td align="center" valign="top">
                    <asp:Label ID="TenSachLabel0" runat="server" 
                Font-Bold="True" Font-Size="XX-Large" ForeColor="#0099FF" 
                Text='<%# Bind("TenSach") %>' />
                </td>
            </tr>
            <tr align="center">
                <td align="center" valign="top">
                    <table width="362px">
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                Tác giả:
                            </td>
                            <td align="right" rowspan="8" style="color: #00CCFF; font-size: medium" 
                                width="10px">
                                &nbsp;</td>
                            <td width="200px">
                                <asp:Label ID="TacGiaLabel0" runat="server" Font-Bold="True" Font-Size="Medium" 
                                    ForeColor="#00CCFF" Text='<%# Bind("TacGia.TenTG") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                Giá bìa:
                            </td>
                            <td width="200px">
                                <asp:Label ID="GiaBiaLabel0" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Font-Size="Medium" Font-Strikeout="True" ForeColor="#FF0066" 
                                    Text='<%# Bind("GiaBia") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                Giá bán:
                            </td>
                            <td width="200px">
                                <asp:Label ID="GiaBanLabel0" runat="server" Font-Bold="True" Font-Size="Medium" 
                                    ForeColor="#0099FF" Text='<%# Bind("GiaBan") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                Loại:
                            </td>
                            <td width="200px">
                                <asp:Label ID="LoaiLabel0" runat="server" Font-Bold="True" Font-Size="Medium" 
                                    ForeColor="#00CCFF" Text='<%# Bind("Loai.TenLoai") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                NXB:
                            </td>
                            <td width="200px">
                                <asp:Label ID="NXBLabel0" runat="server" Font-Bold="True" Font-Size="Medium" 
                                    ForeColor="#00CCFF" Text='<%# Bind("NXB.TenNXB") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: medium" width="150px">
                                Lượt xem:
                            </td>
                            <td width="200px">
                                <asp:Label ID="LuotXemLabel0" runat="server" Font-Bold="True" 
                                    Font-Size="Medium" ForeColor="#00CCFF" Text='<%# Bind("LuotXem") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="font-size: medium; color: #00CCFF" width="150px">
                                Thông tin:
                            </td>
                            <td width="200px">
                                <asp:Label ID="ThongTinLabel0" runat="server" Font-Bold="True" 
                                    Font-Size="Medium" ForeColor="#00CCFF" Text='<%# Bind("ThongTin") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="color: #00CCFF; font-size: small" width="150px">
                                Thêm vào giỏ hàng</td>
                            <td width="200px">
                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                    CommandArgument='<%# Eval("MaSach") %>' 
                                    ImageUrl="~/HinhGiaoDienWeb/btnGioHang_over.png" onclick="ImageButton1_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3" style="width: 400px" width="350px">
                                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                                    Font-Size="Medium" ForeColor="#00CCFF" NavigateUrl="~/XemGioHang.aspx">Xem 
                                giỏ hàng</asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
